﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Workshop.Infrastructure
{
    public class BaseRepository<T> : IBaseRepository<T> where T : class
    {
        private readonly WorkshopContext db;

        public BaseRepository(WorkshopContext db) 
        {
            this.db = db;
        }
        public IQueryable<T> GetAll()
        {
            return db.Set<T>().AsQueryable();
        }
    }
}
